<?php
/**
 * Created by PhpStorm.
 * User: zlkmu
 * Date: 2017/8/14
 * Time: 18:26
 */
    require_once ('../Common.php');
    require_once ('OrdinaryFee.php');

    $appID = $_REQUEST['appID'];
    $return_array = array();
    if(empty($appID)){
        $return_array['state'] = 0;
        $return_array['error'] = 'POST_ERROR';
        exit(json_encode($return_array));
    }
    $o_fee = new OrdinaryFee();

    $r = $o_fee->getOrdinaryFeeDetailByID($appID);
    if(!$r){
        echo json_encode(array('state'=>0, 'error'=>'DB_ERROR'));
    }
    else{
        $return_array['state'] = 1;
        $return_array['error'] = '';
        $return_array['data'] = $r;
        echo json_encode($return_array);
    }



?>